<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStatusDataTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 记录学生报到状态，物品领取状态
        Schema::create('basic_status', function (Blueprint $table) {
            // 表结构
            $table->bigIncrements('id')->comment('自增ID');
            $table->string('exam_code')->comment('学生考试号');

            //
            $table->integer('type')->comment('1:报到(身份确认) 2.生活用品发放 3.教材发放 4.校服发放 5.宿舍钥匙发放  6.现场缴费');
            //报到过程中，扫描二维码后，教师是否确认
            $table->boolean('status')->comment('true:已确认  false:未确认');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('basic_status');
    }
}
